package com.yxhl.zoume.data.http.repository.passenger;

import com.yxhl.zoume.data.http.rest.param.passenger.AddPassengerParam;
import com.yxhl.zoume.data.http.rest.param.passenger.GetPassengersParam;
import com.yxhl.zoume.data.http.rest.param.passenger.UpdatePassengerParam;
import com.yxhl.zoume.data.http.rest.response.passenger.AddPassengerResponse;
import com.yxhl.zoume.data.http.rest.response.passenger.GetPassengersResponse;
import com.yxhl.zoume.data.http.rest.response.passenger.UpdatePassengerResponse;

import retrofit2.http.Body;
import rx.Observable;

/**
 * Created by Xboy on 16/3/15.
 */
public interface PassengerRepository {

    /**
     * 查询常用乘客
     */
    Observable<GetPassengersResponse> getAddedPassengers(@Body GetPassengersParam param);

    /**
     * 添加新乘客
     */
    Observable<AddPassengerResponse> addNewPassenger(@Body AddPassengerParam param);

    /**
     * 更新乘客信息
     */
    Observable<UpdatePassengerResponse> updatePassenger(@Body UpdatePassengerParam param);

}
